package com.zhang.crm.controller;

import com.zhang.crm.pojo.req.TranRemarkReq;
import com.zhang.crm.result.R;
import com.zhang.crm.service.TranRemarkService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
public class TranRemarkController {

    @Resource
    private TranRemarkService tranRemarkService;

    @PostMapping("api/submitTranRemark")
    public R addRemark(@RequestBody TranRemarkReq tranRemarkReq){
        Boolean b = tranRemarkService.addRemark(tranRemarkReq);
        return b ? R.OK() : R.FAIL("添加失败");
    }

}
